import { makeAutoObservable } from 'mobx'
import {http} from '@/uitls'

class ChannelStore {
    channelList = []
    constructor() {
        makeAutoObservable(this)
    }

    loadChannelList = async ()=> {
        const res = await http.get('/channels')
        this.channelList = res.data.channels
    }
}

export default ChannelStore